//
//  MyEverydayTaskTableViewCell.m
//  QiYReader
//
//  Created by 奇阅科技 on 14/12/20.
//  Copyright (c) 2014年 奇阅科技. All rights reserved.
//

#import "MyEverydayTaskTableViewCell.h"
#import "TaskList.h"
@implementation MyEverydayTaskTableViewCell
-(void)setInformation{
    
    TaskList *taskList = [TaskList currentAccount];
    if (self.indexPath.row>=taskList.taskArray.count) {
        return;
    }
    Task *task = taskList.taskArray[self.indexPath.row];
    self.titleNameLabel.text = task.title;
    self.expLabel.text = task.exp;
    self.integralLabel.text = task.integral;
    if (task.isFinshed) {
        self.taskImageView.image = [UIImage imageNamed:@"TaskFinesh"];
    }else{
        self.taskImageView.image = [UIImage imageNamed:@"TaskNoFinesh"];
    }
}
@end
